/**
 * org.assess.oa.system.dao.impl.TbUserRoleDAOImpl
 */
package org.assess.oa.system.dao.impl;

import java.util.List;

import org.assess.core.dao.BaseDAOImpl;
import org.assess.oa.system.bean.TbUserRole;
import org.assess.oa.system.dao.TbUserRoleDAO;

/**
 * @description 操作用户角色表的DAO层实现类
 * @author XiaLongxiang
 * @createtime 2012-6-5 下午1:55:30
 */
public class TbUserRoleDAOImpl extends BaseDAOImpl<TbUserRole> implements TbUserRoleDAO {
    @SuppressWarnings("unchecked")
    public List<TbUserRole> queryTbUserRoleByUserCodeAsList(String user_code) {
        return sqlClient.queryForList("queryTbUserRoleByUserCodeAsList", user_code);
    }
    
    public boolean deleteTbUserRoleById(String user_role_id) {
        sqlClient.delete("deleteTbUserRoleById", user_role_id);
        return true;
    }
    
    public boolean deleteTbUserRoleByUserCode(String user_code) {
        sqlClient.delete("deleteTbUserRoleByUserCode", user_code);
        return true;
    }
    
    public boolean deleteTbUserRoleByRoleId(String role_id) {
        sqlClient.delete("deleteTbUserRoleByRoleId", role_id);
        return true;
    }
    
}
